package com.java.serverpackage;

public class ServerStart {
	private static final int SERVER_PORT = 5163;
	
	public static void main(String args[]){

		MultiThreadedServer server = new MultiThreadedServer(SERVER_PORT);
		new Thread(server).start();
		System.out.println("Server is running.");
		// The server will run for 180 seconds
		try {
		    Thread.sleep(180 * 1000);
		} catch (InterruptedException e) {
			System.out.println("Crash in ServerStart");
		   // e.printStackTrace();
		}
		System.out.println("Stopping Server");
		server.stop();
		System.exit(0); // Make a clean exit
	}
}
